home *** CD-ROM | disk | FTP | other *** search
/ BMUG Revelations / BMUG Revelations.toast / Programming / Programming Languages / Harvest C / MPW Int & Lib / Interfaces / CRMSerialDevices.h < prev    next >
Text File  |  1991-04-17  |  1KB  |  49 lines

  1. /*
  2. Created Tuesday, May 9, 1989 at 6:00 AM
  3.     CRMSerialDevices.h
  4.     C interface to the Communications Resource Manager Serial Device Utilities
  5.  
  6.     Copyright Apple Computer, Inc.  1988-90
  7.     All rights reserved
  8.  
  9. */
  10.  
  11. #ifndef __CRMSERIALDEVICES__
  12. #define __CRMSERIALDEVICES__
  13.  
  14. #include <Types.h>
  15.  
  16. /*    for the crmDeviceType field of the CRMRec data structure */
  17. #define    crmSerialDevice        1            
  18.  
  19. /*  version of the CRMSerialRecord below */
  20. #define    curCRMSerRecVers    1
  21.  
  22.  
  23. /* Maintains compatibility w/ apps & tools that expect an old style icon    */
  24. struct CRMIconRecord {
  25.     long        oldIcon[32];            /* ICN#    */
  26.     long        oldMask[32];
  27.     Handle        theSuite;                /* Handle to an IconSuite    */
  28.     long        reserved;
  29. };
  30.  
  31. typedef struct CRMIconRecord CRMIconRecord;
  32. typedef CRMIconRecord *CRMIconPtr, **CRMIconHandle;
  33.  
  34. struct CRMSerialRecord {
  35.     short            version;
  36.     StringHandle    inputDriverName;
  37.     StringHandle    outputDriverName;
  38.     StringHandle    name;
  39.     CRMIconHandle    deviceIcon;
  40.     long            ratedSpeed;
  41.     long            maxSpeed;
  42.     long            reserved;
  43. };
  44.  
  45. typedef struct CRMSerialRecord CRMSerialRecord;
  46.  
  47. typedef CRMSerialRecord *CRMSerialPtr;
  48.  
  49. #endif __CRMSERIALDEVICES__